FROM --platform=$TARGETPLATFORM alpine:3.12.4 AS builder
COPY ./start/start.sh /
RUN mkdir /usr/node && mkdir -p /kuaicdn/app && chmod 0755 /start.sh
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&&apk update && apk --no-cache add tzdata && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
&& echo "Asia/Shanghai" > /etc/timezone \
&& apk del tzdata \
&& apk --no-cache add git \
&& git clone -b master https://gitee.com/watermelon_peel/kuaicdn.git /usr/node/ \
&& echo "修改111" \
&& rm -rf /var/cache/apk/* 
WORKDIR /kuaicdn/app/
CMD ["/start.sh"]
